package com.xsprite.managesys.dao;


import org.apache.ibatis.session.SqlSession;

import com.xsprite.managesys.bean.User;

public class UserDao{
	
	public User queryUserByNameAndPassword(User user){
		SqlSession session = SessionManager.getInstance().getSession();
		final String statement = "me.gacl.mapping.userMapper.getUser";
		User result = (User) session.selectOne(statement, user);
		return result;
	}
}
